package com.wn.api;

import com.wn.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author yellow Docter
 * @date 2023 -02-21
 * @desc
 */
@FeignClient(value = "user-service",path = "user")
public interface UserApi {

    @GetMapping("/{id}")
    User findUserById(@PathVariable("id") Integer id);

    @DeleteMapping("/{id}")
    String deleteUserById(@PathVariable("id") Integer id);

}
